import React from 'react';
import { Route } from 'react-router-dom';
import Login from '../login';
import Home from '../home';
import News from '../news';
const main = () => {
  return (
    <main>
      <Route path="/" exact component={Home} />
      <Route path="/news" component={News} />
      <Route path="/login" component={Login} />
    </main>
  );
};

export default main;
